﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<form id="myForm" action="Image/UploadFiles" method="post"> 
    Name: <input type="text" name="name" /> 
    Comment: <textarea name="comment"></textarea> 
    <input type=file name="Image" />
    <input type="submit" value="Submit Comment" /> 

</form>
 
    <script src="http://malsup.github.com/jquery.form.js" type="text/javascript"></script> 
<script type="text/javascript">
    $(document).ready(function () {
        $('#myForm').ajaxForm(function () {
            alert("Thank you for your comment!");
        }); 
    });
</script>
